package za.co.pas.spaceandtime.controller;

import java.util.List;
import za.co.pas.business.abstracts.AbstractController;
import za.co.pas.business.data.Company;
import za.co.pas.spaceandtime.data.Building;

/**
 *
 * @author alabuschagne
 */
public class BuildingDetailController extends AbstractController
{

    public void SaveBuilding(Building newBuilding)
    {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    public void setCurrentBuilding(Building Building)
    {
        setModelProperty("CurrentBuilding", Building);
    }

    public void requestMakeNewBuilding()
    {
        setModelProperty("RequestCurrentBuilding", new Building());
    }

    public void requestEditBuilding(Building c)
    {
        setModelProperty("RequestCurrentBuilding", c);
    }

    public void requestBuildingList(Company c, boolean b)
    {
        setModelProperty("RequestBuildingList", c, new Boolean(b));
    }

    public void getBuildingList(Company c, boolean b)
    {
        setModelProperty("BuildingList", c, new Boolean(b));
    }

    public void SaveBuildings(List<Building> newBuildings)
    {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    public void setBuildingList(List<Building> sendNewBuildings)
    {
        setModelProperty("CurrentBuildingList", sendNewBuildings);
    }

}